<?php
include_once 'global.php';
$o = new WeiboOAuth( WB_AKEY , WB_SKEY , $_SESSION['keys']['oauth_token'] , $_SESSION['keys']['oauth_token_secret']  );

$last_key = $o->getAccessToken(  $_REQUEST['oauth_verifier'] ) ;

$_SESSION['last_key'] = $last_key;
//header("Location:$url");
//print_r($_SESSION['last_key']);
echo "<script>alert('成功授权');location.href='index.php';</script>";
?>